all files / src/ add.js

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10          
function add(x, y) {
    if (x !== 1) {
        return x + y;
    } else {
        return 0;
    }
}
 
module.exports = add;